{literal}
<script type = "text/javascript">
function isEmptyValue(value){
	var pattern = /\S/;
	return ret = (pattern.test(value)) ? (true) : (false);
}
{/literal}
</script>
<form name = "searchForm" method = "get" action="index.php" onsubmit = "return isEmptyValue($F_('unocart_search'))">
<input type="hidden" name="option" value="com_unocart" />
<input type="hidden" name="task" value="search" />
<input type = "text" class = "inputbox" style = "width: 110px" name = "unocart_search" id = "unocart_search" value = "{$smarty.request.unocart_search}" />
<input class = "button" style = "width: 30px" type = "submit" name = "submit" value = "{$smarty.const._UNOCART_GO}" />
{if $link_adv_search}
  <br /><a href = "{$link_adv_search}">{$smarty.const._UNOCART_ADVANCED_SEARCH}</a>
{/if}
</form>